import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 引入qs
import qs from 'qs';
// 创建一个app常量
const app = createApp(App);

//引入element
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

// 安装axios
import axios from 'axios';
import VueAxios from 'vue-axios';
// 配置公共请求路径
axios.defaults.baseURL = 'http://127.0.0.1:8093';
app.config.globalProperties.$Imgurl = 'http://127.0.0.1:8093';
// 向原型添加qs插件
app.config.globalProperties.$qs = qs;
console.log(app);
app.use(store).use(router).use(VueAxios,axios).use(ElementPlus).mount("#app");
